import request from '../methods.js'
let config = {
	ShowLoading: true,
	ShowMsg: true,
	getAllData: false,
	new: false,
	system: false,
	store: false
}
export default {
	ChangeUser: async function(prams) {
		let data = {
			...config
		}
		data.new = true
		return await request.Get('/api/v1/Users/ChangeUser', prams, data)
	},
	// 修改密码
	UpdateUser: async function(prams) {
		let data = {
			...config
		}
		data.new = true
		return await request.Post('/api/v1/Users/UpdateUser', prams, data)
	},
	// 获取关于/用户协议
	GetGlobalSetting: async function(prams) {
		let data = {
			...config
		}
		data.new = true
		return await request.Get('/api/v1/GlobalSetting/GetGlobalSetting', prams, data)
	},
	// 获取会员信息
	GetFellows: async function(prams) {
		let data = {
			...config
		}
		data.new = true
		return await request.Get('/api/v1/FellowLevel/GetFellows', prams, data)
	},
	// 购买会员
	InsertFellowInfo: async function(prams) {
		let data = {
			...config
		}
		data.new = true
		return await request.Get('/api/v1/FellowInfo/InsertFellowInfo', prams, data)
	},
	// 删除地址
	receivingdelete: async function(prams) {
		let data = {
			...config
		}
		data.store = true
		return await request.Get('/api/v1/Receiving/receivingdelete', prams, data)
	},
	// 解析地址
	GetAreasIdByName: async function(prams) {
		let data = {
			...config
		}
		data.system = true
		return await request.Get('/api/v1/Areas/GetAreasIdByName', prams, data)
	}
}